const userFacade = require('./user.facade');
function login(req, res) {
  userFacade.findUser(req.body.username, req.body.password, (err, result)=>{
    if (err) {
      res.send('login fail');
    } else {
      res.send('login success: ' + req.body.username);
    }
  });
}

exports.login = login;
